import 'package:flutter/material.dart';

class MyTabBar extends TabBar {
  final double height;
  const MyTabBar({
    super.key,
    required super.tabs,
    super.controller,
    super.isScrollable = false,
    super.padding,
    super.indicatorColor,
    super.automaticIndicatorColorAdjustment = true,
    super.indicatorWeight,
    super.indicatorPadding,
    super.indicator,
    super.indicatorSize,
    super.dividerColor,
    super.dividerHeight,
    super.labelColor,
    super.labelStyle,
    super.labelPadding,
    super.unselectedLabelColor,
    super.unselectedLabelStyle,
    super.dragStartBehavior,
    super.overlayColor,
    super.mouseCursor,
    super.enableFeedback,
    super.onTap,
    super.physics,
    super.splashFactory,
    super.splashBorderRadius,
    super.tabAlignment,
    super.textScaler,
    required this.height,
  });

  @override
  Size get preferredSize => Size.fromHeight(height);
}
